<template>
  <div>
    <div class="row">
      <MyBanner />
    </div>
    <div class="row">
      <div class="col-xs-2 col-xs-offset-2">
        <div class="list-group">
          <!-- <a href="" class="list-group active">About</a>
          <a href="" class="list-group-item">Home</a> -->
          <router-link
            replace
            to="/about"
            class="list-group-item"
            active-class="active"
            >About</router-link
          >

          <router-link
            replace
            to="/home"
            class="list-group-item"
            active-class="active"
            >Home</router-link
          >
        </div>
      </div>
      <div class="col-xs-6">
        <div class="panel">
          <div class="panel-body">
            <!-- 指定组件的呈现位置 -->
            <router-view></router-view>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
// 引入组件
import MyBanner from "./components/MyBanner";
export default {
  name: "App",
  components: {
    MyBanner,
  },
};
</script>
<style></style>
